package ${package.ServiceImpl};

import ${package.Entity}.${entity};
import ${package.Mapper}.${table.mapperName};
import ${package.Service}.${table.serviceName};
import ${superServiceImplClassPackage};
import org.springframework.stereotype.Service;
    import ${cfg.packageParent}.po.req.${entity}Req;
    import ${cfg.packageParent}.po.entity.${entity};
    import com.github.pagehelper.PageHelper;
    import com.github.pagehelper.PageInfo;
    import java.util.List;
    import lombok.extern.slf4j.Slf4j;

/**
 * <p>
    * ${table.comment!} 服务实现类
    * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Service
    @Slf4j
<#if kotlin>
open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>(), ${table.serviceName} {

}
<#else>
public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}> implements ${table.serviceName} {
    @Override
    public PageInfo<${entity}> page(${entity}Req ${table.entityPath}Req) {
    // 开启分页
    PageHelper.startPage(${table.entityPath}Req.getPageNum(), ${table.entityPath}Req.getPageSize());
    List<${entity}> ${table.entityPath}List = super.list(null);
    // 清除分页
    PageHelper.clearPage();
    return new PageInfo<>(${table.entityPath}List);
    }
}
</#if>
